//
//  BLTimeAxisRule.h
//  BLTimeAxis
//
//  Created by dg on 2025/4/17.
//

#import <Foundation/Foundation.h>
#import "BLTimeAxisComponent.h"

NS_ASSUME_NONNULL_BEGIN
/**
 刻度尺
 */
@interface BLTimeAxisRule : NSObject<BLTimeAxisComponent>

@property (nonatomic, assign) BLTimeAxisDirection axisDirection;
/// 刻度尺在视图中的固定偏移位置
@property (nonatomic, assign) CGFloat fixedOffset;

@property (nonatomic, assign) NSTimeInterval currentTimeInterval;

@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, assign) CGFloat strokeSize;

/// 当前时间的整时
@property (nonatomic, readonly, strong) NSDate *currentHourDate;
@property (nonatomic, readonly, assign) NSInteger currentHour;

- (void)acceptVisitor:(id<BLTimeAxisVisitor>)visitor;

- (NSInteger)fetchCurrentTimeValueWithUnit:(NSCalendarUnit)unit;

@end

NS_ASSUME_NONNULL_END
